export const resizeListener = chart => {
    window.addEventListener('resize', function () {
        console.log('chart', chart.resize());
        chart.resize();
    });
};